extends CanvasLayer

var lang: bool = true

func _on__button_2_pressed():
	TranslationServer.set_locale(GlobalVar.locale)
	print(GlobalVar.locale, "YUOU")
	if GlobalVar.in_game:
		queue_free()
	else:
		get_tree().change_scene_to_file("res://scenes/ui/menu/main_menu.tscn")


func _on_check_button_pressed():
	if lang == false:
		lang = true
		TranslationServer.set_locale("us")
		GlobalVar.locale = "en"
	else:
		TranslationServer.set_locale("ru")
		GlobalVar.locale = "ru"
		lang = false
